package com.zheng.consumer;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

/**
 * @author: ztl
 * @date: 2025/04/09 22:43
 * @desc: 消息消费者
 */

@Component
public class MessageConsumer {

    @StreamListener(Sink.INPUT)
    public void process(Object msg){
        System.out.println("MessageConsumer get： "+msg);
    }
}
